Firewall
Artemis supports parsing macOS Firewall information. It can get a list of applications that allow or block incoming connections.
Collection
You have to use the artemis api in order to get Firewall information.
Sample API Script
import {
firewallStatus,
} from "./artemis-api/mod";
async function main() {
const results = firewallStatus();
console.log(results);
}
Output Structure
A Firewall
object structure
export interface Firewall {
allow_signed_enabled: boolean;
firewall_unload: boolean;
logging_enabled: boolean;
global_state: boolean;
logging_option: boolean;
stealth_enabled: boolean;
version: string;
applications: FirewallApplication[];
exceptions: FirewallExceptions[];
explict_auths: string[];
services: Services[];
}
export interface FirewallExceptions {
path: string;
state: number;
}
export interface Services {
name: string;
allowed: boolean;
}
export interface FirewallApplication {
code_signing: SingleRequirement;
application_info: Alias;
block_incoming: boolean;
}